home *** CD-ROM | disk | FTP | other *** search
/ BMUG PD-ROM A / PD-ROM A.iso / Programming / Programming Languages / MacOberon / MacOberon (tools) / WriteDemo.Txt (.txt) < prev    next >
Encoding:
Oberon Text  |  1991-02-14  |  4.7 KB  |  110 lines  |  [.Ob./.Ob2]

  1. Syntax10.Scn.Fnt
  2. Syntax12.Scn.Fnt
  3. Syntax14.Scn.Fnt
  4. Syntax14i.Scn.Fnt
  5. Syntax10i.Scn.Fnt
  6.  all Write Documents available.
  7. This is an example of a Write document.  Write extends the standard text system by "active characters".  The clocks, animated icons and other objects appearing in the text below are extensions of regular characters.  Just as ordinary characters, they float in the text and may be inserted into and copied among Write documents without restriction.  Documents containing these extended characters (which we call Write Elements) may be stored and opened at any time, preserving the complete state information of all elements.  You may wish to experiment with Write, for example by creating more clocks at the caret position by executing the command ClockElems.Insert , giving an optional size parameter.  Elements are always clipped to the frame that displays them, i.e. they are never partially drawn if they do not fit into the window completely.
  8. Popup Elements:    
  9.     PopupElems.Insert "ButtonName"    {Press Action Button over the outlined rectangle}
  10.         {above to get a popup menu.  Press Action and}
  11.     {Use this command to create a new}    {Select simultaneously to edit the menu.}
  12.     {popup box.  Then open its edit window}    {Any changes you make in the edit window are}
  13.     {and start adding commands.}    {instantly propagated to the menu.}
  14.         {The popup menu will remember the last command}
  15.         {you chose and offer it as a default the next time}
  16.         {around.  If you store the document, this information}
  17.         {is even saved to the file...}
  18. Clock Elements:    
  19.     ClockElems.Insert 12 {minimum}    {You can create any number of clocks of any size.}
  20.     ClockElems.Insert 20 {default}
  21.     ClockElems.Insert 50
  22. Fold Elements:    
  23. click on the left triangle
  24.     FoldElems.Insert    {Click action at a filled triangle to expand hidden}
  25.     FoldComp.Compile */s    {text.  Make a new fold element by selecting some}
  26.     FoldComp.ShowError    {text and executing FoldElems.Insert .}
  27.     More Info:  Write.Open FoldDemo.Txt
  28. Icon Elements:    
  29.     IconElems.Insert    {Press Action Button over Icon to activate}
  30.         {a ScreenSaver, then press any key to return.}
  31. Chaos Elements:
  32.     ChaosElems.Insert 1900 1000 {Big Monitor}    {Will be inserted at caret position.}
  33.     ChaosElems.Insert 800 400 {Small Monitor}    {Use Action Button to start simulation.}
  34. Graphics Elements:
  35. Table Elements:
  36. Style Elements:
  37. Chapter
  38. Some text.
  39. Some text.
  40. Chapter
  41. Some text.
  42. Some text.
  43. Error Elements:
  44.     ErrorElems.Mark
  45.         pos 4700 err 5
  46.         pos 4705 err 131
  47. WriteParcs.Alloc
  48. PopupElems.Alloc
  49. Syntax10.Scn.Fnt
  50. System.Directory *.Txt
  51. WriteParcs.Alloc
  52. WriteParcs.Alloc
  53. PopupElems.Alloc
  54. System
  55. Syntax10.Scn.Fnt
  56. System.Collect
  57. System.Directory ^
  58. System.Recall
  59. System.OpenLog
  60. System.ShowModules
  61. System.Time
  62. System.Version
  63. System.Watch
  64. ClockElems.Alloc
  65. FoldElems.New
  66. Syntax12.Scn.Fnt
  67. Syntax10.Scn.Fnt
  68. Any text can be collapsed.  
  69. Including...
  70. WriteParcs.Alloc
  71. FoldElems.New
  72. Syntax10.Scn.Fnt
  73. folded text
  74. WriteParcs.Alloc
  75. FoldElems.New
  76. FoldElems.New
  77. IconElems.Alloc
  78. GraphicElems.Alloc
  79. Rectangles
  80. Syntax10.Scn.Fnt
  81. new element is inserted as the right or left child
  82. father
  83. TableElems.Alloc
  84. Syntax10.Scn.Fnt
  85. /table
  86. 10    30    53    83    56
  87. 29    93    38    38    84
  88. 17    9    43    64    84
  89. 8475    285    9384    9289    
  90. WriteParcs.Alloc
  91. TableElems.Alloc
  92. Syntax10.Scn.Fnt
  93. /table
  94. 1    2    3
  95. 4    5    6
  96. WriteParcs.Alloc
  97. StyleElems.Alloc
  98. Chapter
  99. StyleElems.Alloc
  100. Paragraph
  101. StyleElems.Alloc
  102. Paragraph
  103. StyleElems.Alloc
  104. Chapter
  105. StyleElems.Alloc
  106. Paragraph
  107. StyleElems.Alloc
  108. Paragraph
  109. WriteParcs.Alloc
  110.